<template>
  <div>
    <div class="bigbox">
      <div class="content" v-for="(v,i) in arr" :key="i">
        <img :src="v.url"/>
        <div class="cu">{{v.brand}}</div>
        <div>{{v.name}}</div>
        <div class="cu">{{v.price}}</div>
      </div>
    </div>
  </div>
</template>
<script>
import getlink from "../api/getapi"
export default {
    data () {
        return {
            arr:[]      
        }
    },
    mounted () {
        getlink("/data/list").then((ok)=>{
            this.arr=ok.data.shop;
        })
    },
};
</script>

<style scoped>
    .bigbox{
        width: 90%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        margin-top: 0.2rem;
        text-align: center;
        flex-wrap: wrap;
        padding-bottom: .6rem;
    }
    img{
        width: 1.65rem;
        height: 1.65rem;
    }
    .content{
        width: 47%;
        margin-bottom: 0.2rem;
    }
    .cu{
        font-weight: 900;
    }
</style>